﻿using Car;
using Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public class GoodsBLL
    {
        public List<GoodsModels> selectType(int GoodsTypeID, int count, int pageIndex) {return GoodsDAL.selectType(GoodsTypeID, count, pageIndex);}
        public List<GoodsModels> selectByID(int GoodsID){return GoodsDAL.selectByID(GoodsID); }
        public List<GoodsModels> selectAll() { return GoodsDAL.selectAll(); }
        public static List<GoodsModels> selectBytime( int count, int pageIndex) { return GoodsDAL.selectBytime(count, pageIndex); }
        public static List<GoodsModels> selectByname(string GoodsName,int count,int pageIndex) { return GoodsDAL.selectByname(GoodsName,count,pageIndex); }
        public static List<GoodsModels> selectBysearch(string GoodsName) { return GoodsDAL.selectBysearch(GoodsName); }
        public static List<GoodsModels> selectTypeAll(int GoodsTypeID) { return GoodsDAL.selectTypeAll(GoodsTypeID); }
    }
}
